//
//  GTListLoader.h
//  news
//
//  Copyright © 2022 sinosun. All rights reserved.
//

#import <Foundation/Foundation.h>
@class GTListItem;

NS_ASSUME_NONNULL_BEGIN

// block 的声明，类比C++的函数指针
typedef void(^GTListItemLoadFinished)(BOOL success, NSArray<GTListItem *> *dataArray);

/// 列表请求
@interface GTListLoader : NSObject

- (void)loadListData;

// block 的使用，类比C++的函数指针
- (void)loadListDataWithBlock:(GTListItemLoadFinished)finishedBlock;
@end

NS_ASSUME_NONNULL_END
